﻿using System.Web.Optimization;

namespace CodeSaude.Web
{
    public static class BundleConfig
    {
        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {

            // * CSS * // 

            //Bootstrap Core CSS  
            bundles.Add(new StyleBundle("~/Content/bootstrapCoreCSS").Include(
                      "~/Content/bootstrap.min.css"));

            //Custom CSS 
            bundles.Add(new StyleBundle("~/Content/customCSS").Include(
                      "~/Content/sebrae.css"));

            //JQueryUI CSS 
            bundles.Add(new StyleBundle("~/Content/jqueryUiCSS").Include(
                      "~/Content/jquery-ui.css"));

            //Bootstrap DatetimePicker CSS 
            bundles.Add(new StyleBundle("~/Content/datetimePickerCSS").Include(
                      "~/Content/Datetimepicker/bootstrap-datetimepicker.css"));


            // * JS * //

            //Globalize JS
            bundles.Add(new ScriptBundle("~/bundles/globalize").Include(
                    "~/Scripts/Globalize/globalize.js",
                    "~/Scripts/Globalize/cultures/globalize.culture.pt-BR.js"));

            //.Net MVC Framework JS
            bundles.Add(new ScriptBundle("~/bundles/mvcValidate").Include(
                    "~/Scripts/jquery.validate*"));

            //JQuery JS 
            bundles.Add(new ScriptBundle("~/bundles/jquery")
                .Include("~/Scripts/jquery-{version}.js")
                .Include("~/Scripts/jquery.validate.min.js")
                .Include("~/Scripts/jquery.validate.unobtrusive.min.js"));

            //Bootstrap JS 
            bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
                        "~/Scripts/bootstrap.js",
                        "~/Scripts/respond.js"));

            //JQueryUI JS 
            bundles.Add(new ScriptBundle("~/bundles/jqueryUi").Include(
                        "~/Scripts/jquery-ui.min.js"));

            //Bootstrap DatetimePicker JS 
            bundles.Add(new StyleBundle("~/bundles/datetimePickerJS").Include(
                        "~/Scripts/Datetimepicker/moment.min.js",
                        "~/Scripts/Datetimepicker/moment-range.js",
                        "~/Scripts/Datetimepicker/locale/pt-br.js",
                        "~/Scripts/Datetimepicker/bootstrap-datetimepicker.js"));

            //Util JS 
            bundles.Add(new ScriptBundle("~/bundles/util").Include(
                        "~/Scripts/Utilitarios/enum.js",
                        "~/Scripts/Utilitarios/mensagem.js",
                        "~/Scripts/mask.js",
                        "~/Scripts/MaskMoney/jquery.maskMoney.js",
                        "~/Scripts/Utils.js"));

            BundleTable.EnableOptimizations = false;

        }
    }
}
